/**
 * 
 */
package net.xfok.mail.sender;

/**
 * @author howard
 *
 */
public abstract class MailSender {
	protected String smtp;
	protected String username;
	protected String password;
	
	/**
	 * constructor
	 * @param smtp smtp server
	 * @param username username
	 * @param password password
	 */
	public MailSender(String smtp,String username,String password){
		this.smtp=smtp;
		this.username=username;
		this.password=password;
	}
	
	/**
	 * send a mail
	 * @param to mails'receiver
	 * @param subject mail's subject
	 * @param body mail's body
	 */
	public abstract void send(String to,String subject,String body);
	
	/**
	 * send a mail
	 * @param from mail's sender
	 * @param to mails'receiver
	 * @param subject mail's subject
	 * @param body mail's body
	 */
	public abstract void send(String from,String to,String subject,String body);
}
